package com.base.app_core.model;


import java.io.Serializable;
import java.util.List;

/**
 * Created by jiansheng.li on 2017/9/8.
 */

public class Province extends Region implements Serializable {

	/**
	 * id : 1
	 * parent_id : 0
	 * name : 北京市
	 * city : [{"id":2,"parent_id":1,"name":"北京市市辖区","area":[{"id":3,"parent_id":2,"name":"东城区"},{"id":4,"parent_id":2,"name":"西城区"},{"id":5,"parent_id":2,"name":"朝阳区"},{"id":6,"parent_id":2,"name":"丰台区"},{"id":7,"parent_id":2,"name":"石景山区"},{"id":8,"parent_id":2,"name":"海淀区"},{"id":9,"parent_id":2,"name":"门头沟区"},{"id":10,"parent_id":2,"name":"房山区"},{"id":11,"parent_id":2,"name":"通州区"},{"id":12,"parent_id":2,"name":"顺义区"},{"id":13,"parent_id":2,"name":"昌平区"},{"id":14,"parent_id":2,"name":"大兴区"},{"id":15,"parent_id":2,"name":"怀柔区"},{"id":16,"parent_id":2,"name":"平谷区"},{"id":17,"parent_id":2,"name":"密云区"},{"id":18,"parent_id":2,"name":"延庆区"}]}]
	 */
	public Province(){
		this.type=1;
	}
	private Long parent_id;
	private List<CityBean> city;

	public Long getParent_id() {
		return parent_id;
	}

	public void setParent_id(Long parent_id) {
		this.parent_id = parent_id;
		this.parentId=parent_id;

	}

	public List<CityBean> getCity() {
		return city;
	}

	public void setCity(List<CityBean> city) {
		this.city = city;
	}

	public static class CityBean extends Region {
		/**
		 * id : 2
		 * parent_id : 1
		 * name : 北京市市辖区
		 * area : [{"id":3,"parent_id":2,"name":"东城区"},{"id":4,"parent_id":2,"name":"西城区"},{"id":5,"parent_id":2,"name":"朝阳区"},{"id":6,"parent_id":2,"name":"丰台区"},{"id":7,"parent_id":2,"name":"石景山区"},{"id":8,"parent_id":2,"name":"海淀区"},{"id":9,"parent_id":2,"name":"门头沟区"},{"id":10,"parent_id":2,"name":"房山区"},{"id":11,"parent_id":2,"name":"通州区"},{"id":12,"parent_id":2,"name":"顺义区"},{"id":13,"parent_id":2,"name":"昌平区"},{"id":14,"parent_id":2,"name":"大兴区"},{"id":15,"parent_id":2,"name":"怀柔区"},{"id":16,"parent_id":2,"name":"平谷区"},{"id":17,"parent_id":2,"name":"密云区"},{"id":18,"parent_id":2,"name":"延庆区"}]
		 */

		private Long parent_id;
		private List<AreaBean> area;

		public Long getParent_id() {
			return parent_id;
		}

		public void setParent_id(Long parent_id) {
			this.parent_id = parent_id;
			this.parentId=parent_id;
		}
		public CityBean(){
			this.type=2;
		}
		public List<AreaBean> getArea() {
			return area;
		}

		public void setArea(List<AreaBean> area) {
			this.area = area;
		}

		public static class AreaBean extends Region{
			/**
			 * id : 3
			 * parent_id : 2
			 * name : 东城区
			 */

			private Long parent_id;

			public AreaBean(){
				this.type=3;
			}
			public Long getParent_id() {
				return parent_id;
			}

			public void setParent_id(Long parent_id) {
				this.parent_id = parent_id;
				this.parentId=parent_id;
			}


		}
	}
}
